/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-11-10
 * Time: 16:36
 */
public class Test {
    public static void main(String[] args) {
        int i = 11;
        for(; i < 100; i++) {
            int c = i^0;
            if(isPrime(i) && c / i <= 1) {
                break;
            }
        }
        System.out.println(i);
    }
    public static boolean isPrime(int x) {
        for(int i = 2; i < x; i++) {
            if(x % i == 0) {
                return false;
            }
        }
        return true;
    }
}
